package top.krwlc.server.message;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * krwlc
 * top.krwlc.server.message
 *
 * @author Lanscarlos
 * @since 2022-04-05 15:39
 */
@Component
@PropertySource(value="classpath:message.properties", encoding = "utf-8")
public class UserMessage {

    /*
    * 注册相关信息
    * */
    @Value("${message.user.register.duplicate}")
    public String REGISTER_DUPLICATE;
    @Value("${message.user.register.duplicate.display}")
    public String REGISTER_DUPLICATE_DISPLAY;
    @Value("${message.user.register.duplicate.identityCode}")
    public String REGISTER_DUPLICATE_IDENTITY_CODE;
    @Value("${message.user.register.duplicate.phone}")
    public String REGISTER_DUPLICATE_PHONE;
    @Value("${message.user.register.failed.invalid.identityCode}")
    public String REGISTER_FAILED_INVALID_IDENTITY_CODE;
    @Value("${message.user.register.failed.invalid.phone}")
    public String REGISTER_FAILED_INVALID_PHONE;
    @Value("${message.user.register.failed}")
    public String REGISTER_FAILED;
    @Value("${message.user.register.succeeded}")
    public String REGISTER_SUCCEEDED;

    /*
    * 登录相关信息
    * */
    @Value("${message.user.login.duplicate}")
    public String LOGIN_DUPLICATE;
    @Value("${message.user.login.failed}")
    public String LOGIN_FAILED;
    @Value("${message.user.login.succeeded}")
    public String LOGIN_SUCCEEDED;

    /*
    * 登出相关信息
    * */
    @Value("${message.user.logout.succeeded}")
    public String LOGOUT_SUCCEEDED;
    @Value("${message.user.logout.unlisted}")
    public String LOGOUT_UNLISTED;


}
